package com.tl.khadmin.enums; 

public enum OrderStateEnum implements BaseEnum{ 
 
	无(0,"无"),
	未付款(1,"未付款"),
	已付款(2,"已付款"),
	报关中(3,"报关中"),
	已发货(4,"已发货"),
	已完成(5,"已完成"),
	已取消(6,"已取消"),
	报关失败(7,"报关失败"),
	售后中(8,"售后中"),
	售后完成(9,"售后完成"),
	未报关(10,"未报关"),
	已签收(11,"已签收");


	private final int code;
	private final String desc;

	OrderStateEnum(int code, String desc) {
	        this.code = code;
	        this.desc = desc;
	}
	
	public static OrderStateEnum codeOf(int code) {
        for (OrderStateEnum e : OrderStateEnum.values()) {
            if (e.code == code) {
                return e;
            }
        }
		return null; 
	}

	public int code() {
		// TODO Auto-generated method stub
		return code;
	}
	
	public String getDesc() {
        return desc;
    }

}
